package controller

import (
	"github.com/gin-gonic/gin"
	"password-verification-management-system/service"
)

func UserGetKeyFile(c *gin.Context) {

}

func CreateUserByAdmin(c *gin.Context) {
	createuserservice := service.UserService{}
	if err := c.ShouldBind(&createuserservice); err == nil {
		res := createuserservice.CreatUser(c.Request.Context())
		c.JSON(200, res)
	} else {
		c.JSON(400, "bind fail")
	}
}

//func UserLogin(c *gin.Context) {
//	userloginservice := service.UserService{}
//	if err := c.ShouldBind(&userloginservice); err == nil {
//		res := userloginservice.UserLogin(c.Request.Context())
//		c.JSON(200, res)
//	} else {
//		c.JSON(400, "bind fail")
//	}
//}
